﻿// Decompiled with JetBrains decompiler
// Type: UnityEngine.Rendering.RTClearFlags
// Assembly: UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: E6AE6B5A-2752-4B07-9528-C8B77C62CE79
// Assembly location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.dll
// XML documentation location: C:\Users\windys\Unity\2021.3.39f1c1\Editor\Data\Managed\UnityEngine\UnityEngine.CoreModule.xml

using System;

#nullable disable
namespace UnityEngine.Rendering
{
  /// <summary>
  ///   <para>Flags that determine which render targets Unity clears when you use CommandBuffer.ClearRenderTarget.</para>
  /// </summary>
  [Flags]
  public enum RTClearFlags
  {
    /// <summary>
    ///   <para>Do not clear any render target.</para>
    /// </summary>
    None = 0,
    /// <summary>
    ///   <para>Clear all color render targets.</para>
    /// </summary>
    Color = 1,
    /// <summary>
    ///   <para>Clear the depth buffer.</para>
    /// </summary>
    Depth = 2,
    /// <summary>
    ///   <para>Clear the stencil buffer.</para>
    /// </summary>
    Stencil = 4,
    /// <summary>
    ///   <para>Clear all color render targets, the depth buffer, and the stencil buffer. This is equivalent to combining RTClearFlags.Color, RTClearFlags.Depth and RTClearFlags.Stencil.</para>
    /// </summary>
    All = Stencil | Depth | Color, // 0x00000007
    /// <summary>
    ///   <para>Clear both the depth and the stencil buffer. This is equivalent to combining RTClearFlags.Depth and RTClearFlags.Stencil.</para>
    /// </summary>
    DepthStencil = Stencil | Depth, // 0x00000006
    /// <summary>
    ///   <para>Clear both the color and the depth buffer. This is equivalent to combining RTClearFlags.Color and RTClearFlags.Depth.</para>
    /// </summary>
    ColorDepth = Depth | Color, // 0x00000003
    /// <summary>
    ///   <para>Clear both the color and the stencil buffer. This is equivalent to combining RTClearFlags.Color and RTClearFlags.Stencil.</para>
    /// </summary>
    ColorStencil = Stencil | Color, // 0x00000005
  }
}
